<?php include './application/views/common/shop_head.php'; ?>
<!--<script type="text/javascript" src="/static/js/focus.js" ></script>-->
<div class="mall_banner">
   <div class="slider-wrap" id="banner_show">
   	<?php foreach($scrollpic_list as $scrollpic){?>
       <a href="<?php echo $scrollpic['url'];?>"><div class="slider-items bannger_inbox" style="overflow: hidden;"><img src="<?php echo SCROLLPIC_IMG.$scrollpic['pic']?>"></div></a>
   	<?php }?>   		
      <div class="slider-index yq_banner_list" id="yq_banner_list">
        <ul class="items">
        	<?php for($i=0;$i<count($scrollpic_list);$i++){?>
        		<a href="javascript:;" rel="<?php echo $i;?>" <?php if($i==0){?> class="hover" <?php }?>>&nbsp;</a>
        	<?php }?>
        </ul>
      </div>
    </div>
    
    <div class="mall_menu">
    <div class="mall_menu_bg"></div>
      <div class="menu_con">
        <div class="mall_huanli">
        <img src="/static/images/huanli-title.png" width="270" height="44" />
        <ul>
          <li><a href="/shop/arr.html?ptype=1">办公类产品</a></li>
          <li><a href="/shop/arr.html?ptype=3">生活类产品</a></li>
          <li><a href="/shop/arr.html?ptype=2">电子类产品</a></li>
        </ul>
        </div>
          <div class="mall_choujiang">
              <img src="/static/images/choujiang-title.png" width="270" height="44" />
              <ul>
                  <li><a href="/shop/box.html">聚宝抽奖</a></li>
              </ul>
          </div>
        
       
      </div>
    </div>    
</div>

  </div>
  
<script src="/static/js/scroll.js"></script>
	<!--<div class="activity">
		<div class="activity_l" style="overflow: hidden;" id="ScrollMe">
			<ul>
			<?php foreach($product_notice_list as $k => $notice){?>
			<?php if ($k>=5){break;}?>
				<li><?php echo $notice['username']?>您好,您兑换的"<?php echo $notice['pname']?>".已成功发送,请留意查收.</li>
			<?php }?>
			</ul>
		</div>
		<script>new srcMarquee("ScrollMe",0,1,600,45,3,3000,3000,45);</script>
		<!--<div class="activity_r"><a href="/article/index/shop.html">查看更多</a></div>-->
	<!--</div>-->
	<!-- Activity End -->
	
<div class="mall_con">

 <?php include './application/views/shop/shop_left.php'; ?>
  <!--End con_l-->
  
  <div class="mall_con_r">
    <div class="pd_tuijian">
      <div class="tuijian_title"><h2>推荐产品<span><a href="/shop/arr.html?tui=1">更多>></a></span></h2></div>
		  <div class="tuijian_con">
			<?php foreach ($tui_list as $info){?>
				<div class="pd_box">
					<a href="/shop/info/<?php echo $info['id'];?>.html"><img src="<?php echo $info['pimg'];?>" width="160" height="120"></a>
					<h3><a href="/shop/info/<?php echo $info['id'];?>.html"><?php echo $info['pname'];?></a></h3>
					<p>普通会员积分价：<span><?php echo $info['pcredit'];?></span></p>
					<p> VIP&nbsp;会员优惠价：<span><?php echo $info['pvipcredit'];?></span></p>
					<p style="color:#999">剩余：<span style="color:#999"><?php echo $info['psurp'];?></span>个</p> 
					<div class="duihuan_bt"><a href="/shop/info/<?php echo $info['id'];?>.html"><img src="/static/images/bt-duihuan.png" width="56" height="26" /></a></div>
				</div>
			<?php }?>
		  </div>
    </div>
    
    <div class="pd_fenlei">
      <div class="fenlei_title">
        <ul>
			<a href="/shop/arr.html?ptype=1" onmouseover="show_shop(1);" ><li id="li1" class="current1" style="cursor:pointer;">办公类用品</li></a>
			<a href="/shop/arr.html?ptype=2"  onmouseover="show_shop(2);"><li id="li2" class="feilei2" style="cursor:pointer;">电子类用品</li></a>
			<a href="/shop/arr.html?ptype=3"  onmouseover="show_shop(3);"><li id="li3" class="feilei3" style="cursor:pointer;">生活类用品</li></a>
        </ul>
      </div>
		
	
		
      <div class="feilei_con" id="div1">
		<?php foreach ($type1_list as $info){?>
			<div class="pd_box">
				<a href="/shop/info/<?php echo $info['id'];?>.html"><img src="<?php echo $info['pimg'];?>" width="160" height="120"></a>
				<h3><a href="/shop/info/<?php echo $info['id'];?>.html"><?php echo $info['pname'];?></a></h3>
				<p>普通会员积分价：<span><?php echo $info['pcredit'];?></span></p>
				<p> VIP&nbsp;会员优惠价：<span><?php echo $info['pvipcredit'];?></span></p>
				<p style="color:#999">剩余：<span style="color:#999"><?php echo $info['psurp'];?></span>个</p> 
				<div class="duihuan_bt"><a href="/shop/info/<?php echo $info['id'];?>.html"><img src="/static/images/bt-duihuan.png" width="56" height="26" /></a></div>
			</div>
		<?php }?>
      </div>
	  
	  <div class="feilei_con" id="div2" style="display:none">
			<?php foreach ($type2_list as $info){?>
			<div class="pd_box">
				<a href="/shop/info/<?php echo $info['id'];?>.html"><img src="<?php echo $info['pimg'];?>" width="160" height="120"></a>
				<h3><a href="/shop/info/<?php echo $info['id'];?>.html"><?php echo $info['pname'];?></a></h3>
				<p>普通会员积分价：<span><?php echo $info['pcredit'];?></span></p>
				<p> VIP&nbsp;会员优惠价：<span><?php echo $info['pvipcredit'];?></span></p>
				<p style="color:#999">剩余：<span style="color:#999"><?php echo $info['psurp'];?></span>个</p> 
				<div class="duihuan_bt"><a href="/shop/info/<?php echo $info['id'];?>.html"><img src="/static/images/bt-duihuan.png" width="56" height="26" /></a></div>
			</div>
			<?php }?>
      </div>
	  
	  <div class="feilei_con" id="div3" style="display:none">
			<?php foreach ($type3_list as $info){?>
			<div class="pd_box">
				<a href="/shop/info/<?php echo $info['id'];?>.html"><img src="<?php echo $info['pimg'];?>" width="160" height="120"></a>
				<h3><a href="/shop/info/<?php echo $info['id'];?>.html"><?php echo $info['pname'];?></a></h3>
				<p>普通会员积分价：<span><?php echo $info['pcredit'];?></span></p>
				<p> VIP&nbsp;会员优惠价：<span><?php echo $info['pvipcredit'];?></span></p>
				<p style="color:#999">剩余：<span style="color:#999"><?php echo $info['psurp'];?></span>个</p> 
				<div class="duihuan_bt"><a href="/shop/info/<?php echo $info['id'];?>.html"><img src="/static/images/bt-duihuan.png" width="56" height="26" /></a></div>
			</div>
			<?php }?>
      </div>

    </div>
  </div>
  <!--End con_r-->
</div>
<!--End con-->

<script>
		function show_shop(id){
			 for(i=1;i<4;i++){
				$("#li"+i).removeClass("current"+i);
				$("#li"+i).addClass("feilei"+i);
				$("#div"+i).hide();
			}
			$("#div"+id).show();
			$("#li"+id).addClass("current"+id);
		}
	</script>
<?php include './application/views/common/footer.php'; ?>


